package com.yanqu.road.server.cross3server.cmd.activity.union;

import com.yanqu.road.entity.servercenter.ServerInfo;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ChannelTonBingProto;
import com.yanqu.road.pb.union.UnionProto;
import com.yanqu.road.pb.union.cross.CrossUnionProto;
import com.yanqu.road.server.channelserver.manager.activity.tonbing.ChannelTonBingMgr;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.manger.ServerListMgr;
import com.yanqu.road.server.protocol.ChannelProtocol;
import com.yanqu.road.server.protocol.Cross3Protocol;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.utils.ConfigHelper;
import com.yanqu.road.utils.RandomHelper;
import com.yanqu.road.utils.YanQuMessageUtils;

import java.util.ArrayList;
import java.util.List;


@Cmd(code = Cross3Protocol.C3_CROSS_QUERY_UNION, desc = "")
public class Cross3QueryUnionReqCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        UnionProto.CrossUnionQueryReqMsg reqMsg = UnionProto.CrossUnionQueryReqMsg.parseFrom(packet.getBytes());
        MessageHelper.sendPacket(reqMsg.getServerId(),packet.getPlayerId(),YanQuMessageUtils.buildMessage(CrossProtocol.C3_CHANNEL_QUERY_UNION_REQ, reqMsg));
    }

    @Override
    public void sendData() {

    }

}
